import { Entity, PrimaryUuid, CreateDate, UpdateDate, Cover, Desc, Title, WxBannerType, DisplayOrder, Link, SysUserId, CreateUserId, Boolean } from '@sker/core'
@Entity({ name: 'wx_banner' })
export class WxBanner {
    static title: string = `广告`;
    static resource: string = `wx_banner`;

    @PrimaryUuid({ comment: '编号', primaryKeyConstraintName: 'PK_WX_BANNER_ID' })
    id!: string;

    @Cover({ comment: '广告图' })
    cover!: string;

    @Desc({ comment: '简介', nullable: true, default: '' })
    desc!: string;

    @Title({ comment: '标题' })
    title!: string;

    @Link({ comment: '链接' })
    url!: string;

    @WxBannerType()
    type: string;

    @DisplayOrder()
    display_order: number;

    @CreateUserId({ comment: '创建人', nullable: true })
    create_uid!: string;

    @Boolean({ comment: '启用', default: true })
    enabled: boolean;

    @CreateDate({
        comment: '创建日期'
    })
    create_date!: Date;

    @UpdateDate({
        comment: '更新日期'
    })
    update_date!: Date;
}